package com.example.mybatis.mapper;

import com.example.mybatis.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {
    List<UserInfo> queryAllUser();

    List<UserInfo> queryAllUser2();

    List<UserInfo> queryAllUser3();

    List<UserInfo> queryUserByWhere(String userName, Integer age);

    Integer insertUser(UserInfo userInfo);

    Integer insertUser2(@Param("userinfo") UserInfo userInfo);

    Integer insertUserByCondition(UserInfo userInfo);

    Integer insertUserByCondition2(UserInfo userInfo);

    Integer deleteUser(Integer id);

    Integer deleteUserByIds(List<Integer> ids);

    Integer updateUser(UserInfo userInfo);

    Integer updateUserByCondition(UserInfo userInfo);

}
